import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //行业敞口明细
  getIndustryExposureDetail: (query) => api.get(`${config.interfaces.type3}riskMeasurement/industryExposureDetail`, query),

  //   产品与基准行业敞口
  getIndustryExposureContrast: (query) => api.get(`${config.interfaces.type3}riskMeasurement/industryExposureContrast`, query),

  //   根据行业分类获取行业接口
  queryIndustryCategory: (query) => api.get(`${config.interfaces.type3}riskMeasurement/queryIndustryCategory`, query),

  //   收益率分析
  getIndustryReturnExposure: (query) => api.get(`${config.interfaces.type3}riskMeasurement/industryReturnExposure`, query),

  //   累计收益率分析
  getIndustryCumReturnExposure: (query) => api.get(`${config.interfaces.type3}riskMeasurement/industryCumReturnExposure`, query),
};
